﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GameEngineSL.SilverlightCompatibility
{
    public class PointF
    {
        private float x;
        private float y;

        public float X
        {
            get
            {
                return x;
            }
            set
            {
                x = value;
            }
        }

        public float Y
        {
            get
            {
                return y;
            }
            set
            {
                y = value;
            }
        }

        public PointF()
        {
            x = 0;
            y = 0;
        }

        public PointF(float x, float y)
        {
            this.x = x;
            this.y = y;
        }

        public PointF(Point point)
        {
            x = (float)point.X;
            y = (float)point.Y;
        }

        public static implicit operator Point(PointF pointF)
        {
            return new Point(pointF.X, pointF.Y);
        }

        public static implicit operator PointF(Point point)
        {
            return new PointF(point);
        }
    }
}
